package com.grechur.wanandroidcompose.http.service

import com.grechur.wanandroidcompose.bean.BaseData
import com.grechur.wanandroidcompose.bean.coin.CoinBean
import com.grechur.wanandroidcompose.bean.coin.CoinFromBean
import com.grechur.wanandroidcompose.bean.coin.CoinPage
import retrofit2.http.GET
import retrofit2.http.Path

interface CoinService {

    @GET("/coin/rank/{index}/json")
    suspend fun getCoinRank(@Path("index") index: Int):BaseData<CoinPage<CoinBean>>

    @GET("/lg/coin/userinfo/json")
    suspend fun getMineCoin():BaseData<CoinBean>

    @GET("/lg/coin/list/{index}/json")
    suspend fun takeCoinList(@Path("index") index: Int):BaseData<CoinPage<CoinFromBean>>

}